require File.join(File.dirname(__FILE__), 'dump.rb')
require File.join(File.dirname(__FILE__), 'memcache-entry-serializer.rb')

class Importer
    def initialize(address, filename)
        @address = address
        @filename = filename
    end

    def import
        destCache = MemCache.new(@address)
        Serializer.deserialize(@filename) do |key, flags, value|
            destCache.storeDetail(key, flags, 0, value)
        end
    end
end
